package com.ruoyi.visitor.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 访客核验记录对象 visitor_code_check
 * 
 * @author ruoyi
 * @date 2025-04-12
 */
public class VisitorCodeCheck extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @JsonFormat(shape  = JsonFormat.Shape.STRING)
    private Long id;

    /** 预约用户openid */
    @Excel(name = "预约用户openid")
    private String openid;

    /** 预约记录ID */
    @Excel(name = "预约记录ID")
    private Long appointmentId;

    /** 访客姓名 */
    @Excel(name = "访客姓名")
    private String visitorName;

    /** 访客身份证号 */
    @Excel(name = "访客身份证号")
    private String visitorIdcard;

    /** 核验码类型(E/L) */
    @Excel(name = "核验码类型(E/L)")
    private String checkType;

    /** 核验码 */
    @Excel(name = "核验码")
    private String checkCode;

    /** 核验时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mi:ss", timezone = "GMT+8")
    @Excel(name = "核验时间", width = 30, dateFormat = "yyyy-MM-dd HH:mi:ss")
    private Date checkTime;

    /** modify_time */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mi:ss", timezone = "GMT+8")
    @Excel(name = "modify_time", width = 30, dateFormat = "yyyy-MM-dd HH:mi:ss")
    private Date modifyTime;

    /** modify_by */
    @Excel(name = "modify_by")
    private String modifyBy;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setAppointmentId(Long appointmentId) 
    {
        this.appointmentId = appointmentId;
    }

    public Long getAppointmentId() 
    {
        return appointmentId;
    }

    public void setVisitorName(String visitorName) 
    {
        this.visitorName = visitorName;
    }

    public String getVisitorName() 
    {
        return visitorName;
    }

    public void setVisitorIdcard(String visitorIdcard) 
    {
        this.visitorIdcard = visitorIdcard;
    }

    public String getVisitorIdcard() 
    {
        return visitorIdcard;
    }

    public void setCheckCode(String checkCode) 
    {
        this.checkCode = checkCode;
    }

    public String getCheckCode() 
    {
        return checkCode;
    }

    public void setCheckTime(Date checkTime) 
    {
        this.checkTime = checkTime;
    }

    public Date getCheckTime() 
    {
        return checkTime;
    }

    public void setModifyTime(Date modifyTime) 
    {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime() 
    {
        return modifyTime;
    }

    public void setModifyBy(String modifyBy) 
    {
        this.modifyBy = modifyBy;
    }

    public String getModifyBy() 
    {
        return modifyBy;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getCheckType() {
        return checkType;
    }

    public void setCheckType(String checkType) {
        this.checkType = checkType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("appointmentId", getAppointmentId())
            .append("visitorName", getVisitorName())
            .append("visitorIdcard", getVisitorIdcard())
            .append("checkCode", getCheckCode())
            .append("checkTime", getCheckTime())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("modifyTime", getModifyTime())
            .append("modifyBy", getModifyBy())
            .append("remark", getRemark())
            .toString();
    }
}
